package com.suye.cloud.demo;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by cheng.shuosheng on 2017/6/14.
 */
@FeignClient(url = "http://localhost:8083",name = "service2")
public interface AdvertGroupRemoteService {
    @RequestMapping(value = "/feignService/{name}", method = RequestMethod.GET) // [B]
    public String service2(@PathVariable("name") String name);// [C]

}
